package com.wolfword.crawler.server.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import com.wolfword.common.dao.BaseDao;
import com.wolfword.crawler.server.entity.ClientLogEntity;

/**
 * 
 * 
 * @author Server Zhang
 * @date 2018-01-11 10:54:52
 */
@Repository
public interface ClientLogDao extends BaseDao<ClientLogEntity> {
	

	ClientLogEntity get4IpAndPort(@Param("clientIp")String clientIp, @Param("clientPort")Integer clientPort);
	
	void updateAllStatus(@Param("clientStatus")Integer clientStatus);
	
	void batchUpdateStatus(@Param("list")List<ClientLogEntity> list);
	
	List<ClientLogEntity> list(@Param("clientName")String clientName, @Param("clientIp")String clientIp,
			@Param("clientPort")Integer clientPort, @Param("status")Integer status);
}
